/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.netcracker.test.ten;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author I
 */
public class Person implements Serializable{
    private String name;
    private String surname;
    private String patronimyc;
    private List<Person> list_children = new ArrayList<Person>();
    
    public Person(String name, String surname, String patronimyc)
    {
        this.name = name;
        this.surname = surname;
        this.patronimyc = patronimyc;
    }
    
    public void setName(String n){
        name = n;
    
    }
    
    public String getName(){
        return name;
    }
    
    public void setSurname(String s){
        surname = s;
    
    }
    
    public String getSurname(){
        return surname;
    }
    public void setPatronimyc(String p){
        patronimyc = p;
    }
    
    public String getPatronymic(){
        return patronimyc;
    }
    
    public List<Person> getListChildren(){
        return list_children;
    }
}
